#!/usr/bin/env python
#encoding:utf-8
#Create：     2013-7-22
#Author：     longlimin

from lib import sqlpool
import logger
import config

global_conn = sqlpool.SqlPool(*config.INFOC_GLOBAL)

acclog = logger.Logger(config.LOG_PATH, 'acc.log', format='%Y%m%d')
errlog = logger.Logger(config.LOG_PATH, 'err.log', format='%Y%m%d')

#language type <-> hive type
HIIVE_TYPE = {"binary":"string", "uint":"int", "string":"string", "bool":"boolean"}